package com.example.demo.component;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class ReadProperties {

//    //读取端口号
//    @Value("${server.port}")
//    private String port;
//
//    @PostConstruct
//    public void PostConstruct() {
//        System.out.println("port = " + port);
//    }

}
